package com.hsxc.cdz.monitor.bean.pile.v1_21;

import com.hsxc.cdz.base.util.BytesUtil;

//遥脉消息
public class PlusePileMsg extends PileMessage {

	/************************************************/
	//对象私有属性
	private int electricity; //充电电量
	private int money;       //充电金额   
	
	/************************************************/
	//get() and set() 
	
	public int getElectricity() {
		return electricity;
	}

	public void setElectricity(int electricity) {
		this.electricity = electricity;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}
	
    /****************************************************/
	//重写父类方法
	@Override
	public void getContentFromByte(byte[] data) {
		byte[] temp;
        temp = BytesUtil.getByte(0,4,data);
        this.setElectricity(BytesUtil.bytesToIntDesc(temp));
        
        temp = BytesUtil.getByte(4,4,data);
        this.setMoney(BytesUtil.bytesToIntDesc(temp));
	}


}
